<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003 Frederico Caldeira Knabben
 *
 * Licensed under the terms of the GNU Lesser General Public License
 * (http://www.opensource.org/licenses/lgpl-license.php)
 *
 * For further information go to http://www.fredck.com/FCKeditor/ 
 * or contact fckeditor@fredck.com.
 *
 * fck_specialchar.html: Special characters chooser dialog box.
 *
 * Authors:
 *   Fredox
 *   Frederico Caldeira Knabben (fckeditor@fredck.com)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="../../css/fck_dialog.css">
			<style type="text/css">
				.Disactive { border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; width: 1%; cursor: hand; border-bottom: 1px solid; background-color: #dedbd6; text-align: center; }
				.Active { cursor: hand; background-color: #ffffcc; text-align: center; }
				.MainTable { border-right: #e8e8e8 5px solid; border-top: #e8e8e8 5px solid; border-left: #e8e8e8 5px solid; border-bottom: #e8e8e8 5px solid; }
				.Sample { border-right: 1px solid; border-top: 1px solid; font-size: 24px; border-left: 1px solid; border-bottom: 1px solid; background-color: #dedbd6; }
				.Empty { border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; width: 1%; cursor: default; border-bottom: 1px solid; background-color: #dedbd6; }
			</style>
			<script language="javascript">
<!--
document.write("<title>" + dialogArguments.lang["DlgSmileyTitle"] + "</title>") ;

var oSample ;

function insertChar(td)
{
	window.returnValue = td.innerHTML || "" ;
	window.close();
}

function over(td)
{
	oSample.innerHTML = td.innerHTML ;
	td.className = 'Active' ;
}

function out(td)
{
	oSample.innerHTML = "&nbsp;" ;
	td.className = 'Disactive' ;
}

function CloseWindow()
{
	window.returnValue = null ;
	window.close() ;
}

function setDefaults()
{
	// First of all, translate the dialog box texts
	dialogArguments.AvailableLangs.TranslatePage(document) ;
}
//-->
			</script>
			<script language="javascript" src="../../js/fck_config.js"></script>
	</head>
	<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0" onload="setDefaults()">
		<table cellpadding="0" cellspacing="10" width="100%" height="100%">
			<tr>
				<td rowspan="2" width="100%">
					<table class="MainTable" cellpadding="0" cellspacing="0" align="center" border="1" width="100%"
						height="100%">
						<script language="javascript">
<!--
var sBasePath = dialogArguments.config.SmileyPath ;
var aImages   = dialogArguments.config.SmileyImages ;
var cols      = dialogArguments.config.SmileyColumns ;

var i = 0 ;
while (i < aImages.length)
{
	document.write("<TR>") ;
	for(var j = 0 ; j < cols ; j++) 
	{
		if (aImages[i])
		{
			document.write("<TD class='Disactive' onclick='insertChar(this)' onmouseover='over(this)' onmouseout='out(this)'>") ;
			document.write("&nbsp;<img src='" + sBasePath + aImages[i] + "' border='0'>&nbsp;") ;
		}
		else
			document.write("<TD class='Empty'>&nbsp;") ;
		document.write("</TD>") ;
		i++ ;
	}
	document.write("</TR>") ;
}
//-->
						</script>
					</table>
				</td>
				<td valign="top">
					<table class="MainTable" align="center">
						<tr>
							<td id="SampleTD" width="80" height="80" align="center" class="Sample">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align="right" valign="bottom">
					<input type="button" fckLang="DlgBtnCancel" value="Cancel" style="WIDTH: 80px" onclick="CloseWindow();">
				</td>
			</tr>
		</table>
	</body>
</html>
<script language="javascript">
<!--
oSample = document.getElementById("SampleTD") ;
//-->
</script>
